package com.iteye.wujun8.encrypt;

import com.iteye.wujun8.encrypt.core.FileProcessor;
import com.iteye.wujun8.encrypt.input.InputProcessor;

import java.io.File;
import java.io.IOException;

/**
 * User: wujun
 * Date: 2014/10/11
 */
public class Main {
    public static void main(String[] args) throws IOException {
        String filePath = InputProcessor.getFilePath(args);
        String key = InputProcessor.getPassword();
        FileProcessor fileProcessor = FileProcessor.getInstance(key);
        File file = new File(filePath);
        fileProcessor.process(file);
    }
}
